#!/usr/bin/python
# -*-coding:UTF-8-*-
import json

if __name__ == '__main__':
	
	arr={"0": {"phone": 18573122260, "age": 33, "name": "zz"}, "1": {"phone": 18600003333, "age": 22, "name": "cc"}}

	# js=json.loads(arr)

	# tojs=json.dumps(arr,indent=4)
	tojs=json.dumps(arr)

	f=open('file.json',"w")

	f.write(arr)

	
	print(arr)